package one.stand.mapper;

import one.stand.model.UserCouponModel;
import one.stand.response.UserCouponResponse;

import java.util.List;

public interface UserCouponMapper {
    int deleteByPrimaryKey(Long userCouponId);

    int insertSelective(UserCouponModel record);

    UserCouponModel selectByPrimaryKey(Long userCouponId);

    int updateByPrimaryKeySelective(UserCouponModel record);

    /**
     * 获取用户的优惠券
     * @param inModel
     * @return
     */
    List<UserCouponResponse> selectListByUserId(UserCouponModel inModel);

    /**
     * 获取用户在该公司未领取的优惠券
     * @param inModel
     * @return
     */
    List<UserCouponModel> selectListByCompanyIdAndNotInCouponId(UserCouponModel inModel);


}